package com.jhs.boot.system.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * RFID人员匹配表表单对象
 *
 * @author zxy
 * @since 2025-10-29 16:06
 */
@Getter
@Setter
@Schema(description = "RFID人员匹配表表单对象")
public class SysRfidUserForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    @Schema(description = "标签号")
    @NotBlank(message = "标签号不能为空")
    @Size(max=100, message="标签号长度不能超过100个字符")
    private String userCode;

    @Schema(description = "名字")
    @NotBlank(message = "名字不能为空")
    @Size(max=100, message="名字长度不能超过100个字符")
    private String name;

    @Schema(description = "性别((1-男 2-女 0-保密)")
    private Integer gender;

    @Schema(description = "用户头像")
    @Size(max=255, message="用户头像长度不能超过255个字符")
    private String avatar;

    @Schema(description = "联系方式")
    @Size(max=20, message="联系方式长度不能超过20个字符")
    private String mobile;

    @Schema(description = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;


}
